package com.example.applicationjet

import android.app.Application
import androidx.lifecycle.ProcessLifecycleOwner
import com.example.applicationjet.lifecycle.AppObserver

class MainApp: Application() {
    override fun onCreate() {
        super.onCreate()
        //添加app的前后台监听
        ProcessLifecycleOwner.get().lifecycle.addObserver(AppObserver())
    }
}